#!/bin/bash

# 变量声明
. ../func/const.sh
. ../func/file.sh
# 配置文件目录
trashDir='/mnt/persist/tmp/.trash'
usrLocalDir='/home/object/.local/share'
exUri="${shDir}"

cd /
mkFileOld "${usrLocalDir}" "Trash"
ln -sf "${trashDir}" "${usrLocalDir}/Trash"

# 删除oldfile目录中的软链接
find "${usrLocalDir}/oldfile" -type l -delete
# 清除变量
unset trashDir
unset usrLocalDir
cd ${exUri}
unset exUri
